// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui';// 引入饿了么
import 'element-ui/lib/theme-chalk/index.css';// 引入饿了么样式
import axios from 'axios'//引入axios
// 兄弟组件传值
export const eventBus = new Vue()

Vue.config.productionTip = false
// 声明饿了么
Vue.use(ElementUI);
// 把axios对象绑定到Vue原型中
Vue.prototype.axios = axios
/* eslint-disable no-new */

new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
